package com.ruoyi.qiushi.domain.mall;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务商品订单对象 trade_service_order
 *
 * @author ruoyi
 * @date 2023-12-25
 */
public class TradeServiceOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private Long userId;

    /**
     * 订单流水号
     */
    @Excel(name = "订单流水号")
    private String no;

    /**
     * 商品id
     */
    @Excel(name = "商品id ")
    private Long spuId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称 ")
    private String spuName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long count;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String image;

    /**
     * 第三方支付流水号(如支付宝)
     */
    @Excel(name = "第三方支付流水号(如支付宝)")
    private String payTradeNo;

    /**
     * 订单支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 支付成功的支付渠道
     */
    @Excel(name = "支付成功的支付渠道")
    private String payChannel;

    /**
     * 1待付款 4已取消 5已完成
     */
    @Excel(name = "1待付款 4已取消 5已完成 ")
    private String status;

    /**
     * 服务开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceStartDate;

    /**
     * 服务结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceEndDate;

    /**
     * 订单完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /**
     * 总价
     */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /**
     * 实际付款金额
     */
    @Excel(name = "实际付款金额")
    private BigDecimal actualPrice;

    /**
     * month包月 quarter包季 year包年
     */
    @Excel(name = "month包月 quarter包季 year包年")
    private String payType;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long deviceId;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    /**
     * 售后状态 0 默认  1售后中  2处理完成
     */
    @Excel(name = "售后状态 0 默认  1售后中  2处理完成")
    private String afterSaleStatus;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getNo() {
        return no;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getCount() {
        return count;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setPayTradeNo(String payTradeNo) {
        this.payTradeNo = payTradeNo;
    }

    public String getPayTradeNo() {
        return payTradeNo;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setServiceStartDate(Date serviceStartDate) {
        this.serviceStartDate = serviceStartDate;
    }

    public Date getServiceStartDate() {
        return serviceStartDate;
    }

    public void setServiceEndDate(Date serviceEndDate) {
        this.serviceEndDate = serviceEndDate;
    }

    public Date getServiceEndDate() {
        return serviceEndDate;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setAfterSaleStatus(String afterSaleStatus) {
        this.afterSaleStatus = afterSaleStatus;
    }

    public String getAfterSaleStatus() {
        return afterSaleStatus;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("no", getNo())
                .append("spuId", getSpuId())
                .append("spuName", getSpuName())
                .append("count", getCount())
                .append("image", getImage())
                .append("payTradeNo", getPayTradeNo())
                .append("payTime", getPayTime())
                .append("payChannel", getPayChannel())
                .append("status", getStatus())
                .append("serviceStartDate", getServiceStartDate())
                .append("serviceEndDate", getServiceEndDate())
                .append("finishTime", getFinishTime())
                .append("totalPrice", getTotalPrice())
                .append("actualPrice", getActualPrice())
                .append("payType", getPayType())
                .append("deviceId", getDeviceId())
                .append("deviceName", getDeviceName())
                .append("afterSaleStatus", getAfterSaleStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
